//
//  DKLoginRegisterNameView.m
//  DanKU
//
//  Created by 吴斌 on 2023/9/18.
//

#import "DKLoginRegisterNameView.h"
@implementation DKLoginRegisterNameView
-(instancetype)init{
    if(self == [super init]){
        self.backgroundColor = UIColor.clearColor;
        [self dk_addSubView];
    }
    return self;
}
- (void)dk_addSubView{
    UIImageView* dk_RegisterLogImgView = [[UIImageView alloc] init];
    dk_RegisterLogImgView.userInteractionEnabled = YES;
    dk_RegisterLogImgView.image = DK_GetImage(DK_AppIcon);
    [self addSubview:dk_RegisterLogImgView];
    [dk_RegisterLogImgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@(DK_IsWidthScale(30)));
        make.top.equalTo(@(DK_IsWidthScale(0)));
        make.bottom.equalTo(@(DK_IsWidthScale(0)));
        make.width.equalTo(dk_RegisterLogImgView.mas_height);
    }];
    UILabel *dk_RegisterNameLab = [[UILabel alloc] init];
    dk_RegisterNameLab.textColor = DK_Hex(@"#333333");
    dk_RegisterNameLab.font = DK_FONT_Semibold(20);
    dk_RegisterNameLab.text = DK_AppName;
    [self addSubview:dk_RegisterNameLab];
    [dk_RegisterNameLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(dk_RegisterLogImgView.mas_right).offset(DK_IsWidthScale(10));
        make.centerY.equalTo(dk_RegisterLogImgView);
        make.height.equalTo(@(DK_IsWidthScale(28)));
    }];
}

@end
